<script setup lang="ts">
import { onMounted,ref } from 'vue';

var count = ref(0);
onMounted(()=>{
  for(let i = 1; i <= 100; i++){
    count.value += i;
  }
})
</script>

<template>
  <p>1 到 100 的累加值是: {{ count }}</p>
</template>